package com.example.adminsystem.controller;


import com.example.adminsystem.entity.Role;
import com.example.adminsystem.repository.RoleRepository;
import com.example.adminsystem.req.RoleReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/role")
public class RoleController extends BaseCrudController<Role, Long, RoleReq.AddRoleRequest, RoleReq.AddRoleRequest, RoleReq.RoleQuery > {

    @Autowired
    private RoleRepository routerRepository;

    @Override
    protected RoleRepository getRepository() {
        return routerRepository;
    }





}